package reflect;

import java.lang.reflect.Field;

public class reflectDemo7 {
    public static void main(String[] args) throws  Exception{
        Class<?> aClass = Class.forName("reflect.Person");
        Object o = aClass.newInstance();

        Field age = aClass.getDeclaredField("age");
        age.setAccessible(true);
        System.out.println(age.get(o));

    }
}
